package com.lhd.creational.singleton.demo01;

/**
 * @Author: liuhd
 * @Date: 2024/10/19 16:37
 * @Description: 饿汉式单例1
 */
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton(){}

    public static Singleton getInstance(){
        return singleton;
    }
}
